package com.touchwisdom.fetch.core.model.base;

import com.jfinal.autotable.AutoColumn;
import com.touchwisdom.modular.common.model.BaseEntity;

@SuppressWarnings({ "serial", "unchecked" })
public class BaseDbSource<M extends BaseDbSource<M>> extends BaseEntity<M> {
	public M setTitle(java.lang.String title) {
		set("title", title);
		return (M) this;
	}

	@AutoColumn(length = 32, nullable = false)
	public java.lang.String getTitle() {
		return getStr("title");
	}

	public M setJdbcUrl(java.lang.String jdbcUrl) {
		set("jdbcUrl", jdbcUrl);
		return (M) this;
	}

	@AutoColumn(length = 128, nullable = false)
	public java.lang.String getJdbcUrl() {
		return getStr("jdbcUrl");
	}

	public M setUserName(java.lang.String userName) {
		set("userName", userName);
		return (M) this;
	}

	@AutoColumn(length = 32, nullable = false)
	public java.lang.String getUserName() {
		return getStr("userName");
	}

	public M setUserPass(java.lang.String userPass) {
		set("userPass", userPass);
		return (M) this;
	}

	@AutoColumn(length = 32, nullable = false)
	public java.lang.String getUserPass() {
		return getStr("userPass");
	}
}
